import React, { useEffect } from "react";
import { connect } from "react-redux";
import { checkIsLogin } from "stores/homeStore/action";
import HomeWrap from "../../components/home/homeWrap";
import RegisterForm from "../../components/home/register";

import "assets/less/view/home/index.less";

const Register = () => {
  useEffect(()=>{
    document.title = "白 - 注册";
  }, [])
  return (
    <HomeWrap>
        <RegisterForm />
    </HomeWrap>
  );
};

export default connect(
  store => ({
    islogin: store.home.islogin
  }),
  {
    checkIsLogin
  }
)(Register);
